<template>
  <div class="main">
    <NavHead />
    <section class="main-contain">
      <div class="nav-silder">
        <NavSilder />
      </div>
      <div class="contain">
        <Breadcrumb v-if='!$route.meta.noBreadcrumb' />
        <div class="content">
          <router-view />
        </div>
      </div>
    </section>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import NavSilder from '@/components/navBar/navSlider.vue'
import NavHead from '@/components/navBar/navHead.vue'
import Breadcrumb from '@/components/navBar/breadcrumb.vue'
export default defineComponent({
  components: {
    NavSilder,
    NavHead,
    Breadcrumb
  },
  setup() {
    return {
    }
  }
})
</script>
<style lang="scss">
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.main-contain {
  flex: 1;
  display: flex;
  height: 0;
}
.nav-silder {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background:white;
  overflow: auto;
}
.contain {
  flex: 1;
  display: flex;
  flex-direction: column;
  // height: 0;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: auto;
}
</style>
